package com.foreveross.fetl.application.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.foreveross.fetl.application.ISourceApplication;
import com.foreveross.fetl.common.application.BaseApplicationImpl;
import com.foreveross.fetl.core.domain.task.SourceEntity;
import com.foreveross.fetl.vo.SourceVO;
@Transactional(value="transactionManagerOracle")
@Service("sourceApplication")
public class SourceApplicationImpl extends BaseApplicationImpl implements
		ISourceApplication {

	@Override
	public List<SourceVO> listAll() {
		List<SourceVO> results = new ArrayList<SourceVO>();
		SourceEntity source = new SourceEntity();
		List<SourceEntity> listSource=source.findAll();
		for(SourceEntity e : listSource){
			results.add(new SourceVO(e));
		}
		return results;
	}

}
